home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Path: undergrad.math.uwaterloo.ca!clgonsal
- From: clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves)
- Subject: Re: Young programmers read me.
- Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
- Message-ID: <DprAy7.Kv1@undergrad.math.uwaterloo.ca>
- Date: Fri, 12 Apr 1996 15:56:31 GMT
- References: <4icpp9$7hr@barad-dur.nas.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au> <gfarrow.829193316@rainbow> <jsm16-1104960959080001@ups02.cit.cornell.edu>
- Nntp-Posting-Host: lhopital.uwaterloo.ca
- Organization: University of Waterloo
-
- In article <jsm16-1104960959080001@ups02.cit.cornell.edu>,
- James Margaris <jsm16@cornell.edu> wrote:
- >In article <gfarrow.829193316@rainbow>, gfarrow@rainbow.rmii.com (Glenn
- >Farrow) wrote:
- >
- >> John Joseph Newbigin <079519@bud.cc.swin.edu.au> writes:
- >>
- >> >But it is a lot easier to read
- >>
- >> >if(something_happened)
- >> >{
- >> > do_something_else();
- >> >}
- >> >is_n't_it(); :)
- >>
- >> Nonesense. This style is extremely annoying because it spreads the code out
- >> too much, it increases the amount you have to page around a source file.
- >> Putting "{" on a separate line is a waste of space that should be occupied
- >> by code.
- >
- > It seems to me that addding a few extra lines is well worth the
- >readability. Matching up curly braces is so much easier when they are
- >indented to the same level.
-
- You're assuming that the spread-out style is easier to read. It may be for
- you. It used to be for me too, a couple of years ago. But then I switched
- to the "opening brace on the same line" style, and after using it for two
- years I find it much easier to read. Readability is very subjective.
-
- As for finding the matching brace, usually the indentation level is enough
- to understand the code. If I *really* need to find the matching brace
- though, every editor I use has a "find matching brace" function.
-
- --
- Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
- Computer Science, University of Waterloo
- http://www.undergrad.math.uwaterloo.ca/~clgonsal/
- http://www.csclub.uwaterloo.ca/~clgonsal/
-